﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Core.DatabaseAccess;
using System.Data;

namespace PuroGame.Repositories.Repository
{
    public class HomeDestaqueRepository : Interfaces.IHomeDestaqueRepository
    {
        public List<Business.HomeDestaque> List(int top, string orderby)
        {
            Dictionary<string, object> param = new Dictionary<string,object>();

            param.Add("top", top);
            param.Add("orderby", orderby);

            return Base.Query<Business.HomeDestaque>("SELECT TOP(@top) * FROM home_destaque ORDER BY id DESC", param).ToList();
        }

        public void Save(Business.HomeDestaque model)
        {
            throw new NotImplementedException();
        }

        public void Delete(int id)
        {
            throw new NotImplementedException();
        }

        public Business.HomeDestaque Load(int id)
        {
            throw new NotImplementedException();
        }
    }
}
